/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.pojo;

import java.util.Date;

/**
 *
 * @author lethong
 */
public class mathangPOJO {

    private int id;
    private String tenmathang;
    private String madanhmuc;
    private float giathuc;
    private float giakhuyenmai;
    private int tinhtrang;
    private String hinhanh;
    private Date ngaybatdau;
    private Date ngayketthuc;
    private int soluongkhuyenmai;
    private int soluongdatmua;
    private String noidung;
    private String diemnoibat;
    private String dieukien;
    private String thongtinchitiet;

    public mathangPOJO() {
        this.id = 0;
        this.tenmathang = "";
        this.madanhmuc = "";
        this.giathuc = 0;
        this.giakhuyenmai = 0;
        this.tinhtrang = 1;
        this.hinhanh = "";
        Date now = new Date();
        this.ngaybatdau = now;
        this.ngayketthuc = now;
        this.soluongkhuyenmai = 0;
        this.soluongdatmua = 0;
        this.noidung = "";
        this.diemnoibat = "";
        this.dieukien = "";
        this.thongtinchitiet = "";
    }

    public mathangPOJO(int id, String tenmathang, String madanhmuc, float giathuc, float giakhuyenmai, int tinhtrang, String hinhanh, Date ngaybatdau, Date ngayketthuc, int soluongkhuyenmai, int soluongdatmua, String noidung, String diemnoibat, String dieukien, String thongtinchitiet) {
        this.id = id;
        this.tenmathang = tenmathang;
        this.madanhmuc = madanhmuc;
        this.giathuc = giathuc;
        this.giakhuyenmai = giakhuyenmai;
        this.tinhtrang = tinhtrang;
        this.hinhanh = hinhanh;
        this.ngaybatdau = ngaybatdau;
        this.ngayketthuc = ngayketthuc;
        this.soluongkhuyenmai = soluongkhuyenmai;
        this.soluongdatmua = soluongdatmua;
        this.noidung = noidung;
        this.diemnoibat = diemnoibat;
        this.dieukien = dieukien;
        this.thongtinchitiet = thongtinchitiet;
    }

    public mathangPOJO(mathangPOJO mh) {
        this.id = mh.id;
        this.tenmathang = mh.tenmathang;
        this.madanhmuc = mh.madanhmuc;
        this.giathuc = mh.giathuc;
        this.giakhuyenmai = mh.giakhuyenmai;
        this.tinhtrang = mh.tinhtrang;
        this.hinhanh = mh.hinhanh;
        this.ngaybatdau = mh.ngaybatdau;
        this.ngayketthuc = mh.ngayketthuc;
        this.soluongkhuyenmai = mh.soluongkhuyenmai;
        this.soluongdatmua = mh.soluongdatmua;
        this.noidung = mh.noidung;
        this.diemnoibat = mh.diemnoibat;
        this.dieukien = mh.dieukien;
        this.thongtinchitiet = mh.thongtinchitiet;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the tenmathang
     */
    public String getTenmathang() {
        return tenmathang;
    }

    /**
     * @param tenmathang the tenmathang to set
     */
    public void setTenmathang(String tenmathang) {
        this.tenmathang = tenmathang;
    }

    /**
     * @return the madanhmuc
     */
    public String getMadanhmuc() {
        return madanhmuc;
    }

    /**
     * @param madanhmuc the madanhmuc to set
     */
    public void setMadanhmuc(String madanhmuc) {
        this.madanhmuc = madanhmuc;
    }

    /**
     * @return the giathuc
     */
    public float getGiathuc() {
        return giathuc;
    }

    /**
     * @param giathuc the giathuc to set
     */
    public void setGiathuc(float giathuc) {
        this.giathuc = giathuc;
    }

    /**
     * @return the giakhuyenmai
     */
    public float getGiakhuyenmai() {
        return giakhuyenmai;
    }

    /**
     * @param giakhuyenmai the giakhuyenmai to set
     */
    public void setGiakhuyenmai(float giakhuyenmai) {
        this.giakhuyenmai = giakhuyenmai;
    }

    /**
     * @return the tinhtrang
     */
    public int isTinhtrang() {
        return tinhtrang;
    }

    /**
     * @param tinhtrang the tinhtrang to set
     */
    public void setTinhtrang(int tinhtrang) {
        this.tinhtrang = tinhtrang;
    }

    /**
     * @return the hinhanh
     */
    public String getHinhanh() {
        return hinhanh;
    }

    /**
     * @param hinhanh the hinhanh to set
     */
    public void setHinhanh(String hinhanh) {
        this.hinhanh = hinhanh;
    }

    /**
     * @return the ngaybatdau
     */
    public Date getNgaybatdau() {
        return ngaybatdau;
    }

    /**
     * @param ngaybatdau the ngaybatdau to set
     */
    public void setNgaybatdau(Date ngaybatdau) {
        this.ngaybatdau = ngaybatdau;
    }

    /**
     * @return the ngayketthuc
     */
    public Date getNgayketthuc() {
        return ngayketthuc;
    }

    /**
     * @param ngayketthuc the ngayketthuc to set
     */
    public void setNgayketthuc(Date ngayketthuc) {
        this.ngayketthuc = ngayketthuc;
    }

    /**
     * @return the soluongkhuyenmai
     */
    public int getSoluongkhuyenmai() {
        return soluongkhuyenmai;
    }

    /**
     * @param soluongkhuyenmai the soluongkhuyenmai to set
     */
    public void setSoluongkhuyenmai(int soluongkhuyenmai) {
        this.soluongkhuyenmai = soluongkhuyenmai;
    }

    /**
     * @return the soluongdatmua
     */
    public int getSoluongdatmua() {
        return soluongdatmua;
    }

    /**
     * @param soluongdatmua the soluongdatmua to set
     */
    public void setSoluongdatmua(int soluongdatmua) {
        this.soluongdatmua = soluongdatmua;
    }

    /**
     * @return the noidung
     */
    public String getNoidung() {
        return noidung;
    }

    /**
     * @param noidung the noidung to set
     */
    public void setNoidung(String noidung) {
        this.noidung = noidung;
    }

    /**
     * @return the diemnoibat
     */
    public String getDiemnoibat() {
        return diemnoibat;
    }

    /**
     * @param diemnoibat the diemnoibat to set
     */
    public void setDiemnoibat(String diemnoibat) {
        this.diemnoibat = diemnoibat;
    }

    /**
     * @return the dieukien
     */
    public String getDieukien() {
        return dieukien;
    }

    /**
     * @param dieukien the dieukien to set
     */
    public void setDieukien(String dieukien) {
        this.dieukien = dieukien;
    }

    /**
     * @return the thongtinchitiet
     */
    public String getThongtinchitiet() {
        return thongtinchitiet;
    }

    /**
     * @param thongtinchitiet the thongtinchitiet to set
     */
    public void setThongtinchitiet(String thongtinchitiet) {
        this.thongtinchitiet = thongtinchitiet;
    }
}
